import 'package:json_annotation/json_annotation.dart';

part 'prescription.g.dart';

/// @Author lixiaobin
/// @Date 2024/2/20
/// @Description
@JsonSerializable(explicitToJson: true)
class Prescription {
  dynamic id;
  String? hospId;
  String? hospName;
  String? advisingNum;
  String? deptId;
  String? deptName;
  dynamic emrId;
  String? patientId;
  String? processedId;
  String? idcardId;
  String? hospitalQueueId;
  String? patientName;
  String? age;
  String? sex;
  String? diagnose;
  String? allergies;
  String? taboo;
  String? reason;
  String? doctorId;
  String? doctorName;
  String? prescriptionNo;
  String? executeDoctorName;
  String? createTime;
  String? createDate;
  String? bedNum;
  String? pathType;
  String? bedNo;
  String? isUrgent;
  String? isPrint;
  String? isSee;

  //是否支付0:未下单 1:已下单 2:支付成功
  String? isOrder;
  bool? show;

  //0:院内用药  1：院内器械 2：院外用药 3：院外器械 9：配方颗粒
  String? type;
  String? approveDoctorId;
  String? approveDoctorName;
  String? approveTime;
  String? executeDoctorId;
  String? updateTime;

  //处方单状态：
  //待提交  1
  //待审核  2
  //已通过  3
  //未通过  4
  //已挂起  5
  String? status;
  String? prescriptionName;
  String? prescriptionImg;
  bool? expried;
  String? patientIdcardId;

  static Prescription fromJson(Map<String, dynamic> srcJson) =>
      _$PrescriptionFromJson(srcJson);

  Map<String, dynamic> toJson() => _$PrescriptionToJson(this);
}
